package com.terminus.test.cipher;

import org.apache.commons.codec.digest.DigestUtils;

public class Cipherer {

    public static String encryptMD5(String plainText){
        StringBuilder builder=new StringBuilder();
        builder.append(DigestUtils.md5Hex(plainText));
        int length=builder.length();
        for (int i = 0; i <32-length; i++) {
            builder.insert(0,'0');
        }
        return builder.toString();
    }
}
